package com.itheima.spring_observer_review;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-26 21:43
 **/
public class ApplicationContextListener1
        implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        System.out.println("ContextRefreshedEvent 事件" +
                "这是一个寂寞的天,我在应用初始化做一些执行操作");
    }
}
